﻿using System;
using System.Collections.Generic;
using System.Windows.Data;
using System.Globalization;
using Asistente.Model.Representation;

namespace Asistente.Converters
{
    class GetTypeFromUseCase : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value != null)
            {
                UseCase useCase = value as UseCase;
                return useCase.Pattern;
            }
            return "";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
